package com.meizhuang.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 审核版本
 */
public class EntryAudit implements Serializable {
	

	@ApiModelProperty(value = "ID")
	@TableId(type = IdType.AUTO)
    private Integer id;

    private Integer uid;

    private Integer offerProductId;

    private String img;

    private String name;

    private String batchNumber;

    private String barcode;

    private Integer grossWeight;

    private Integer netWeight;

    private String type;

    private String efficacy;

    private String place;

    private Integer shelfLife;

    private Integer status;

	@JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date productTime;

	@JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date expireTime;

	@JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date createTime;

	@JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    private Date updateTime;


    public EntryAudit() {

    }

    public EntryAudit(Entry entry){

        this.barcode=entry.getBarcode();
        this.uid = entry.getUid();
        this.offerProductId=entry.getOfferProductId();
        this.status=entry.getStatus();
        this.img=entry.getImg();
        this.name=entry.getName();
        this.batchNumber=entry.getBatchNumber();
        this.grossWeight=entry.getGrossWeight();
        this.netWeight=entry.getNetWeight();
        this.type=entry.getType();
        this.efficacy=entry.getEfficacy();
        this.place=entry.getPlace();
        this.shelfLife=entry.getShelfLife();
        this.productTime=entry.getProductTime();
        this.expireTime=entry.getExpireTime();
        this.createTime=entry.getCreateTime();
        this.updateTime=entry.getUpdateTime();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getOfferProductId() {
        return offerProductId;
    }

    public void setOfferProductId(Integer offerProductId) {
        this.offerProductId = offerProductId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBatchNumber() {
        return batchNumber;
    }

    public void setBatchNumber(String batchNumber) {
        this.batchNumber = batchNumber;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public Integer getGrossWeight() {
        return grossWeight;
    }

    public void setGrossWeight(Integer grossWeight) {
        this.grossWeight = grossWeight;
    }

    public Integer getNetWeight() {
        return netWeight;
    }

    public void setNetWeight(Integer netWeight) {
        this.netWeight = netWeight;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getEfficacy() {
        return efficacy;
    }

    public void setEfficacy(String efficacy) {
        this.efficacy = efficacy;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public Integer getShelfLife() {
        return shelfLife;
    }

    public void setShelfLife(Integer shelfLife) {
        this.shelfLife = shelfLife;
    }

    public Date getProductTime() {
        return productTime;
    }

    public void setProductTime(Date productTime) {
        this.productTime = productTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}